  <footer>
    {{ partial "foot_highlightjs.html" . }}
    {{ partial "foot_custom.html" . }}
    {{ with .Site.Params.footer }}
    <hr/>
    {{ . | markdownify }}
    {{ end }}
    {{ if .File.Path }}
      {{ $Rmd := (print .File.BaseFileName ".Rmd") }}
      {{ if (where (readDir (print "content/" .File.Dir)) "Name" $Rmd) }}
        {{ $.Scratch.Set "FilePath" (print .File.Dir $Rmd) }}
      {{ else }}
        {{ $.Scratch.Set "FilePath" .File.Path }}
      {{ end }}
      {{ with .Site.Params.GithubEdit}}
        | <a href='{{ . }}{{ $.Scratch.Get "FilePath" }}'>Edit this page</a>
      {{ end }}
    {{ end }}
  </footer>
  </body>
</html>
